/*     */ package com.jcrj.action.personalOffice;
/*     */ 
/*     */ import com.jcrj.action.BaseAction;
/*     */ import com.jcrj.entity.OMenuQuick;
/*     */ import com.jcrj.entity.OUser;
/*     */ import com.jcrj.service.QuickMenuService;
/*     */ import java.io.PrintWriter;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class quickMenuAction extends BaseAction
/*     */ {
/*     */   private QuickMenuService quickMenuService;
/*     */   private String selectMenu;
/*     */   private String name;
/*     */   private String[] px;
/*     */   private String[] menuName;
/*     */   private String[] menuId;
/*     */   private List<OMenuQuick> menuQulckList;
/*     */   private String[] id;
/*     */   public String[] imgUrl;
/*     */   private Integer size;
/*     */ 
/*     */   public String addImg()
/*     */   {
/*  24 */     this.selectMenu = this.quickMenuService.getImgId();
/*  25 */     return "success";
/*     */   }
/*     */ 
/*     */   public String imgLook() {
/*  29 */     this.selectMenu = this.quickMenuService.getimg();
/*  30 */     return "success";
/*     */   }
/*     */ 
/*     */   public String quickMenu() {
/*  34 */     OUser ou = (OUser)super.getSession().get("userInfo");
/*  35 */     if (this.quickMenuService.getMenuIf(ou.getId().intValue())) {
/*  36 */       this.menuQulckList = this.quickMenuService.getMenuQuickList(ou.getId().intValue());
/*  37 */       setSize(Integer.valueOf(this.menuQulckList.size()));
/*  38 */       return "update";
/*     */     }
/*  40 */     return "success";
/*     */   }
/*     */ 
/*     */   public String quickMenusave() {
/*     */     try {
/*  45 */       OUser ou = (OUser)super.getSession().get("userInfo");
/*  46 */       this.quickMenuService.saveMenu(ou.getId().intValue(), this.menuId, this.menuName, this.px, this.imgUrl);
/*  47 */       super.getResponse().getWriter().write("success");
/*  48 */       super.getResponse().getWriter().flush();
/*     */     } catch (Exception e) {
/*  50 */       e.printStackTrace();
/*     */       try
/*     */       {
/*  53 */         super.getResponse().getWriter().close();
/*     */       } catch (Exception e1) {
/*  55 */         e1.printStackTrace();
/*     */       }
/*     */     }
/*     */     finally
/*     */     {
/*     */       try
/*     */       {
/*  53 */         super.getResponse().getWriter().close();
/*     */       } catch (Exception e) {
/*  55 */         e.printStackTrace();
/*     */       }
/*     */     }
/*  58 */     return null;
/*     */   }
/*     */ 
/*     */   public String quickMenuUpdate() {
/*     */     try {
/*  63 */       OUser ou = (OUser)super.getSession().get("userInfo");
/*  64 */       this.quickMenuService.updateMenu(ou.getId().intValue(), this.menuId, this.menuName, this.px, this.imgUrl);
/*  65 */       super.getResponse().getWriter().write("success");
/*  66 */       super.getResponse().getWriter().flush();
/*     */     } catch (Exception e) {
/*  68 */       e.printStackTrace();
/*     */       try
/*     */       {
/*  71 */         super.getResponse().getWriter().close();
/*     */       } catch (Exception e1) {
/*  73 */         e1.printStackTrace();
/*     */       }
/*     */     }
/*     */     finally
/*     */     {
/*     */       try
/*     */       {
/*  71 */         super.getResponse().getWriter().close();
/*     */       } catch (Exception e) {
/*  73 */         e.printStackTrace();
/*     */       }
/*     */     }
/*  76 */     return null;
/*     */   }
/*     */ 
/*     */   public String selectQuickMenu() {
/*     */     try {
/*  81 */       OUser ou = (OUser)super.getSession().get("userInfo");
/*  82 */       this.selectMenu = this.quickMenuService.getMenuAll(ou.getId().intValue());
/*     */     } catch (Exception e) {
/*  84 */       e.printStackTrace();
/*     */     }
/*  86 */     return "success";
/*     */   }
/*     */ 
/*     */   public QuickMenuService getQuickMenuService()
/*     */   {
/*  91 */     return this.quickMenuService;
/*     */   }
/*     */ 
/*     */   public void setQuickMenuService(QuickMenuService quickMenuService) {
/*  95 */     this.quickMenuService = quickMenuService;
/*     */   }
/*     */ 
/*     */   public String getSelectMenu() {
/*  99 */     return this.selectMenu;
/*     */   }
/*     */ 
/*     */   public void setSelectMenu(String selectMenu) {
/* 103 */     this.selectMenu = selectMenu;
/*     */   }
/*     */ 
/*     */   public String getName() {
/* 107 */     return this.name;
/*     */   }
/*     */ 
/*     */   public void setName(String name) {
/* 111 */     this.name = name;
/*     */   }
/*     */ 
/*     */   public String[] getMenuName() {
/* 115 */     return this.menuName;
/*     */   }
/*     */ 
/*     */   public void setMenuName(String[] menuName) {
/* 119 */     this.menuName = menuName;
/*     */   }
/*     */ 
/*     */   public List<OMenuQuick> getMenuQulckList()
/*     */   {
/* 124 */     return this.menuQulckList;
/*     */   }
/*     */ 
/*     */   public void setMenuQulckList(List<OMenuQuick> menuQulckList) {
/* 128 */     this.menuQulckList = menuQulckList;
/*     */   }
/*     */ 
/*     */   public String[] getImgUrl()
/*     */   {
/* 133 */     return this.imgUrl;
/*     */   }
/*     */ 
/*     */   public void setImgUrl(String[] imgUrl) {
/* 137 */     this.imgUrl = imgUrl;
/*     */   }
/*     */ 
/*     */   public String[] getPx() {
/* 141 */     return this.px;
/*     */   }
/*     */ 
/*     */   public void setPx(String[] px) {
/* 145 */     this.px = px;
/*     */   }
/*     */ 
/*     */   public String[] getMenuId() {
/* 149 */     return this.menuId;
/*     */   }
/*     */ 
/*     */   public void setMenuId(String[] menuId) {
/* 153 */     this.menuId = menuId;
/*     */   }
/*     */ 
/*     */   public String[] getId() {
/* 157 */     return this.id;
/*     */   }
/*     */ 
/*     */   public void setId(String[] id) {
/* 161 */     this.id = id;
/*     */   }
/*     */ 
/*     */   public Integer getSize() {
/* 165 */     return this.size;
/*     */   }
/*     */ 
/*     */   public void setSize(Integer size) {
/* 169 */     this.size = size;
/*     */   }
/*     */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.action.personalOffice.quickMenuAction
 * JD-Core Version:    0.6.0
 */